package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_activity_enlist")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ActivityEnlistModel {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer activityId;//活动id
    @TableField(exist = false)
    private String activityText;
    private Integer userId;//用户id
    private String name;//姓名
    private String phone;//电话
    private String idCard;//身份证号
    private Integer status;//审核状态，0待审核 1通过 2拒绝
    @TableField(exist = false)
    private String statusText;
    private Integer auditStatus;//现场图片审核状态，0待审核 1通过 2拒绝
    private String auditRemark;
    @TableField(exist = false)
    private String auditStatusText;
    private String remark;//审核备注
    private String files;//用户上传现场图片
    @TableField(exist = false)
    private String[] filesArr;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
    @TableField(exist = false)
    private Integer page;
    @TableField(exist = false)
    private Integer limit;
    @TableField(exist = false)
    private String keyword;
}
